Make the set_delay function use the provided parameter to set the delay, not the...
authorjosht@us.ibm.com <josht@us.ibm.com>
Mon, 22 Aug 2005 23:28:43 +0000 (00:28 +0100)
committerjosht@us.ibm.com <josht@us.ibm.com>
Mon, 22 Aug 2005 23:28:43 +0000 (00:28 +0100)
tools/xenstat/xentop/xentop.c

index f1257869d33eaa093dd8be029758aafc2c74a2f2..a153aada0e1f4c582eec163e0072c4d7ebf60b22 100644 (file)
@@ -254,7 +254,7 @@ static void attr_addstr(int attr, const char *str)
 static void set_delay(char *value)
 {
        int new_delay;
-       new_delay = atoi(prompt_val);
+       new_delay = atoi(value);
        if(new_delay > 0)
                delay = new_delay;
 }